<?php

class Application_Form_Routes extends Zend_Form
{
   
    public function init() {
        $translate = new My_Action_Helper_Lang();
        
        $this->setName('routes');
	$address = new Zend_Form_Element_Text('address');
        $address->setLabel($translate->_('Address'))
	         ->setRequired(true);
        
        $addAdditionalAddress = new Zend_Form_Element_Submit('submit');
	$addAdditionalAddress->setLabel($translate->_('Add address'));
        
        $delAdditionalAddress = new Zend_Form_Element_Submit('submit');
	$delAdditionalAddress->setLabel($translate->_('Delete address'));
        
        $routeCalculation = new Zend_Form_Element_Submit('submit');
	$routeCalculation->setLabel($translate->_('Route calculation'));
        
        $save = new Zend_Form_Element_Submit('submit');
	$save->setLabel($translate->_('Save'));
        
        $uploadFromFile = new Zend_Form_Element_Submit('submit');
	$uploadFromFile->setLabel($translate->_('Upload from file'));
        
        $saveInFile= new Zend_Form_Element_Submit('submit');
	$saveInFile->setLabel($translate->_('Save in file'));
        
        $print= new Zend_Form_Element_Submit('submit');
	$print->setLabel($translate->_('Print'));
        
	      
	$information = new Zend_Form_Element_Textarea('address');
        $information->setLabel($translate->_('Information'));
	         
        $this->addElements(array($address, $addAdditionalAddress, $delAdditionalAddress,
            $routeCalculation, $save, $uploadFromFile, $saveInFile, $print, $information));	         
	$this->setMethod('post');
    }


}

